package com.ruantu.clothing.dao;

import com.ruantu.clothing.entity.Gongyingshang;

import java.util.List;
import java.util.Map;

public interface GongyingshangMapper {
    int deleteByPrimaryKey(String id);

    int insert(Gongyingshang record);

    int insertSelective(Gongyingshang record);

    Gongyingshang selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Gongyingshang record);

    int updateByPrimaryKey(Gongyingshang record);

    /**
     * 查询所有供应商 combobox用
     *
     * @return
     */
    List<Gongyingshang> findAll(String jgid);

    /**
     * 查询所有供应商
     *
     * @param
     * @return
     */
    List<Gongyingshang> findGongyingshang(Map<String, Object> map);

    int findGongyingshangCount(Map<String, Object> map);

    /**
     * 查询是否存在这个名称
     *
     * @param record
     * @return
     */
    int findGongyingsByName(Gongyingshang record);

    /**
     * 查询供应商修改反显
     *
     * @return
     */
    Gongyingshang findGongyingshangById(Gongyingshang gongyingshang);

    /**
     * 删除供应商
     *
     * @param gongyingshang
     * @return
     */
    int updateDeLFlag(Gongyingshang gongyingshang);

    /**
     * 根据供应商类型查询
     *
     * @param gongyingshang
     * @return
     */
    List<Gongyingshang> findCombobox(Gongyingshang gongyingshang);
}